<template>

  <div class="dianpuList">
    
    <div class="dianpu_left">
      <img :src="url+datas.image_path"
           alt="">
    </div>
    <ul class="dianpu_center">
      <li class="center_top">
       
        <span class="center_top2">{{datas.name}}</span>
      </li>
    
  
      
        <li class="center_center">
        <span class="center_center1">月销{{datas.recent_order_num}}单</span>
       
      </li>
      <li class="center_button">
        <span class="center_button1">￥{{datas.float_minimum_order_amount}}起送/距离{{datas.distance}}</span>
      </li>
    </ul>
    <ul class="dianpu_right">
    
      
      
    </ul>
  </div>
</template>

<script>
// import Vue from 'vue';
// import { Rate } from 'vant';

// Vue.use(Rate);
export default {
  name: 'ShopList',
   props: {
    datas:{
      type:Object,
      required: true
    }
  },
  data () {
    return {
     url:"https://elm.cangdu.org/img/",
      
    };
    
  },

}
</script>

<style lang="less">
.dianpuList {
  width: 100%;
  background-color: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 10px;
  border-bottom:1px solid black;
  .dianpu_left {
    width: 25%;
    margin-left: 10px;
    img {
      width: 50px;
      height: 50px;
    }
  }
  .dianpu_center {
    width: 40%;
    text-align: left;
    .center_top {
     
      .center_top1 {
        display: inline-block;
        font-size: 12px;
        line-height: 15px;
        color: #333;
        background-color: #ffd930;
        padding: 0 5px;
        border-radius: 3px;
        margin-right: 3px;
      }
      .center_top2 {
        color: #333;
        font-size: 15px;
        font-weight: bold;
      }
    }
    .center_center {
      margin: 8px 0;
      .center_center1 {
        font-size: 10px;
        color: #666;
      }
    }
    .center_button {
      margin: 8px 0;
      .center_button1 {
        font-size: 12px;
        color: #666;
      }
    }
  }
  .dianpu_right {
    width: 40%;
    text-align: right;
    .right_top {
      margin: 8px 0;
      .right_top1 {
        font-size: 8px;
        color: #999;
        border: 0.2px solid #999;
        padding: 0 2px;
        margin-right: 2px;
      }
    }
    .right_center {
      margin: 8px 0;
      .right_center1 {
        font-size: 8px;
        background-color: #3190e8;
        border: 0.3px solid #3190e8;
        color: white;
      }
      .right_center2 {
        font-size: 8px;
        border: 0.3px solid #3190e8;
        color: #3190e8;
      }
    }
    .right_buttton {
      margin: 8px 0;
      .right_buttton1 {
        font-size: 8px;
        color: #999;
      }
      .right_buttton2 {
        font-size: 8px;
        color: #3190e8;
      }
    }
  }
}
</style>